\hypertarget{b__protocol_8h}{}\section{b\+\_\+protocol.\+h File Reference}
\label{b__protocol_8h}\index{b\+\_\+protocol.\+h@{b\+\_\+protocol.\+h}}
{\ttfamily \#include \char`\"{}b\+\_\+config.\+h\char`\"{}}\newline
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{structb_protocol_head__t}{b\+Protocol\+Head\+\_\+t}}
\item 
struct \mbox{\hyperlink{structb_protocol_info__t}{b\+Protocol\+Info\+\_\+t}}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___defines_ga683ebecc04749cb0016ec5ad14a2d4f2}{P\+R\+O\+T\+O\+C\+O\+L\+\_\+\+H\+E\+AD}}~0x\+FE
\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef int($\ast$ \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___types_definitions_ga385520b45d23dc3a4dde23de92b85c75}{pdispatch}}) (uint8\+\_\+t $\ast$pbuf, uint32\+\_\+t len)
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___functions_ga042c82b5764c60b4078866635c8e8c7b}{b\+Protocol\+Regist}} (uint32\+\_\+t id, uint8\+\_\+t tx\+\_\+no, \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___types_definitions_ga385520b45d23dc3a4dde23de92b85c75}{pdispatch}} f)
\item 
int \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___functions_gad6c6f38682c0c8cbb0ee45157b4f0490}{b\+Protocol\+Set\+ID}} (uint8\+\_\+t no, uint32\+\_\+t id)
\item 
int \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___functions_gaf49260c718f607cd54064c27a7980d66}{b\+Protocol\+Parse\+Cmd}} (uint8\+\_\+t no, uint8\+\_\+t $\ast$pbuf, uint8\+\_\+t len)
\item 
int \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___functions_gaad449710b7f804997e815402951fa0de}{b\+Protocol\+Pack}} (uint8\+\_\+t no, uint8\+\_\+t cmd, uint8\+\_\+t $\ast$psrc, uint8\+\_\+t $\ast$pdes, uint8\+\_\+t size)
\item 
int \mbox{\hyperlink{group___p_r_o_t_o_c_o_l___exported___functions_gaa2f6a6a163f48963d802b9f6964f348c}{b\+Protocol\+Unpack}} (uint8\+\_\+t $\ast$pbuf, uint8\+\_\+t len, uint8\+\_\+t $\ast$$\ast$pdata, uint8\+\_\+t size)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
!

\begin{DoxyVersion}{Version}
v0.\+0.\+1 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
2019/06/05 
\end{DoxyDate}
\begin{DoxyAuthor}{Author}
Bean(\href{mailto:notrynohigh@outlook.com}{\tt notrynohigh@outlook.\+com})
\end{DoxyAuthor}
\begin{DoxyAttention}{Attention}

\end{DoxyAttention}
Copyright (c) 2019 Bean

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \char`\"{}\+Software\char`\"{}), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions\+:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

T\+HE S\+O\+F\+T\+W\+A\+RE IS P\+R\+O\+V\+I\+D\+ED \char`\"{}\+A\+S I\+S\char`\"{}, W\+I\+T\+H\+O\+UT W\+A\+R\+R\+A\+N\+TY OF A\+NY K\+I\+ND, E\+X\+P\+R\+E\+SS OR I\+M\+P\+L\+I\+ED, I\+N\+C\+L\+U\+D\+I\+NG B\+UT N\+OT L\+I\+M\+I\+T\+ED TO T\+HE W\+A\+R\+R\+A\+N\+T\+I\+ES OF M\+E\+R\+C\+H\+A\+N\+T\+A\+B\+I\+L\+I\+TY, F\+I\+T\+N\+E\+SS F\+OR A P\+A\+R\+T\+I\+C\+U\+L\+AR P\+U\+R\+P\+O\+SE A\+ND N\+O\+N\+I\+N\+F\+R\+I\+N\+G\+E\+M\+E\+NT. IN NO E\+V\+E\+NT S\+H\+A\+LL T\+HE A\+U\+T\+H\+O\+RS OR C\+O\+P\+Y\+R\+I\+G\+HT H\+O\+L\+D\+E\+RS BE L\+I\+A\+B\+LE F\+OR A\+NY C\+L\+A\+IM, D\+A\+M\+A\+G\+ES OR O\+T\+H\+ER L\+I\+A\+B\+I\+L\+I\+TY, W\+H\+E\+T\+H\+ER IN AN A\+C\+T\+I\+ON OF C\+O\+N\+T\+R\+A\+CT, T\+O\+RT OR O\+T\+H\+E\+R\+W\+I\+SE, A\+R\+I\+S\+I\+NG F\+R\+OM, O\+UT OF OR IN C\+O\+N\+N\+E\+C\+T\+I\+ON W\+I\+TH T\+HE S\+O\+F\+T\+W\+A\+RE OR T\+HE U\+SE OR O\+T\+H\+ER D\+E\+A\+L\+I\+N\+GS IN T\+HE S\+O\+F\+T\+W\+A\+RE. 